<?php $this->load->view('admin/forms/works_form');?>
                <div class="total_pagination">
                        <div id="show_search" class="float_left">
                                <b>Total :&nbsp;</b>
                                About <?php echo $total ?> result.
                        </div>
                        <div id="pagination" class="float_right">
                            <?php
                                $config['base_url'] = base_url('admin/news/page');
                                $config['total_rows'] = $total;
                                $config['per_page'] = PER_PAGE;
                                $config['uri_segment'] = 4;
                                $this->pagination->initialize($config);
                                echo $this->pagination->create_links();
                            ?>
                        </div>
                        <div class="clear"></div>
                </div>
                <div class="show_data">
                    <table cellspacing="0" cellpadding="5" border="0" width="100%">
                        <tr>
                            <td align="center" colspan="10" valign="middle" class="title" style="padding: 15px;">WORKS</td>
                        </tr>
                        <tr>
                            <td class="title"><a href=""></a>Name</td>
                            <td class="title">Images</td>
                            <td class="title">Description</td>
                            <td class="title"> &nbsp; Operation &nbsp; </td>            
                        </tr>
                        <?php if (!empty($news)): $count = 0; ?>
                            <?php foreach ($news as $item): $count++; ?>
                                <tr <?php if ($count % 2 != 0) echo "class='enable'"; ?>>
                                    <td class="name"><a href="<?php echo '#'; ?>" target="_blank"><?php echo $item["name"]; ?></a></td>
                                    <td class="infor_show"></td>
                                    <td class="infor_show"><?php echo substr($item["description"], 0, 200); ?></td>
                                    <td class="infor_show"> 
                                        <a href="view_works?id=<?php echo $item["id"]; ?>&action=<?php echo md5('edit_works');?>" class="edit" title="edit work"> Edit</a>
                                        <a href="view_works?id=<?php echo $item["id"]; ?>&action=<?php echo md5('view_works');?>" class="view" title="view work"> View</a>
                                        <a href="control_operation_works?id=<?php echo $item["id"]; ?>&action=<?php echo md5('delete_works');?>" class="delete" title="delete work"> Delete</a>
                                    </td>   
                                </tr>
                            <?php endforeach; ?>
                        <?php else : ?>
                            <div class='notice'>Not find news</div>
                        <?php endif; ?>
                    </table>
                </div><!-- End: #show_work -->